package com.mini.model;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.persistence.*;
import java.io.Serializable;
import java.util.Date;

/**
 * @author xyf
 * @title: BusinessBaseInfo
 * @description:
 * @date 2020/12/18 11:27
 */
@Entity
@Data
@NoArgsConstructor
@AllArgsConstructor
public class BusinessBaseInfo implements Serializable {

    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    private Long miniLessonId; //线上初始值 30013566
    @ApiModelProperty(value = "小课业务名称", required = true)
    private String miniLessonName;

    @ApiModelProperty(value = "渠道id")
    private Integer channelId;

    @ApiModelProperty(value = "渠道标识")
    private String channelCode;

    @ApiModelProperty(value = "渠道名称")
    private String channelName;


    @ApiModelProperty(value = "备注")
    private String comments;

    private Long createUserId;


    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date createTime;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date updateTime;


    @ApiModelProperty(value = "负责人id", required = true)
    private Long fzId;

    @ApiModelProperty(value = "负责人名称", required = true)
    private String fzName;



    @ApiModelProperty(value = "站点类型 飞天系统 =0，星图天网=1")
    private Integer siteType = 0;

    @ApiModelProperty(value = "项目字段id")
    private Integer siteItem;

    @ApiModelProperty(value = "星图站点的模式 1-A 2-B")
    private Integer siteModel;

    @ApiModelProperty(value = "星图站点")
    private String xingtuSite;

    @ApiModelProperty(value = "项目名称")
    @Transient
    private String siteItemName;

    @ApiModelProperty(value = "地域省")
    private String region;

    @ApiModelProperty(value = "地域code")
    private String regionCode;


    @ApiModelProperty(value = "军团id")
    private String armyGroupId;

    @ApiModelProperty(value = "军团名称")
    private String armyGroupName;

    @ApiModelProperty(value = "量子军团id")
    private String quantumGroupId;

    @ApiModelProperty(value = "量子军团名称")
    private String quantumGroupName;

    @ApiModelProperty(value = "是否是白名单 0-否 1-是")
    private Integer whiteListState;

    @ApiModelProperty(value = "是否新创建, 1是 0 否")
    @Transient
    private Byte newFlag = 0;



}
